#ifndef _NAMECOMP_H_
#define _NAMECOMP_H_

#include <SECore/Ecs/Component.h>
#include <string>
#include <SECore/Reflect.h>

namespace SEngine
{
    struct NameComp : public Component<NameComp> 
    {
        ENABLE_SERIALIZE(Component<NameComp>)
        NameComp(Actor & actor) : Component(actor) { name = "Actor"; }
        virtual ~NameComp() = default;
        std::string name;
    };

    REF_REGISTER_CLASS(NameComp,
        REF_REGISTER_FIELD(NameComp, name)
    )
} // namespace SEngine



#endif